package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.query.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface IEmployeeService {
    void save (Employee employee, Long[] ids);

    void updateById (Employee employee, Long[] ids);

    void deleteById (Long id);

    Employee selectById (Long id);

    List<Employee> listAll ();

    PageInfo<Employee> query (QueryObject qo);

    Employee login (String username, String password);

    void updateNewPassword(Long id,String password);

    void batchDelete (Long[] ids);

    Employee selectByName (String name);

    void updateStatus(Long id,boolean status);

    Workbook exportXls();

    void importXls (MultipartFile file) throws IOException;

    //根据角色编码查询查询员工
    List<Employee> selectByRoleSn(String... sns);
}
